import {createRouter, createWebHistory} from 'vue-router'
const routes = [
    {path: '/', component: ()=> import('../views/home/home.vue'),meta:{path: '/', label: '开始'} },
    {path: '/iconfont', component: ()=> import('../views/iconfont.vue'),meta:{path: 'iconfont', label: 'iconfont 图标'} },
    {path: '/button', component: ()=> import('../views/button.vue'),meta:{path: 'button', label: 'UiButton 按钮'} },
    {path: '/selectAddress', component: ()=> import('../views/address.vue'),meta:{path: 'selectAddress', label: 'UiSelectAddress 地址选择'} },
    {path: '/eChart', component: ()=> import('../views/eChart.vue'),meta:{path: 'eChart', label: 'UiEchart 图表'} },
    {path: '/bigTab', component: ()=> import('../views/bigTab.vue'),meta:{path: 'bigTab', label: 'UiBigTab 大表格'} },
    {path: '/math', component: ()=> import('../views/math.vue'),meta:{path: 'math', label: 'math 加减乘除(支持小数)'} },
    {path: '/upload', component: ()=> import('../views/upload.vue'),meta:{path: 'upload', label: 'UiUpload 文件上传'} },
    {path: '/increaseNumber', component: ()=> import('../views/increaseNumber.vue'),meta:{path: 'increaseNumber', label: 'increaseNumber 数字滚动效果'} },
]
const router = createRouter({
    routes,
    history: createWebHistory()
})
export default router